//
//  woDeDingDan.m
//  EJLX
//
//  Created by adc on 15/11/19.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "woDeDingDan.h"
#import "twoWoDeDingDan.h"
@implementation woDeDingDan
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
//        _tradeDate=[userDic[@"tradeDate"]copy];
//        _channel=[userDic[@"channel"]copy];
//        _money=[userDic[@"money"]intValue];
        _totalPage=[userDic[@"totalPage"]intValue];
        _page=[userDic[@"page"]intValue];
        _pageSize=[userDic[@"pageSize"]intValue];
        NSMutableArray*ary=userDic[@"list"];
        _listAry=[NSMutableArray array];
        for (int i=0;i<ary.count;i++)
        {
            twoWoDeDingDan*dD=[twoWoDeDingDan userWithDictionary:ary[i]];
            [_listAry addObject:dD];
            NSLog(@"listary%lu",(unsigned long)_listAry.count);
        }
        
        
    }
    return self;
}
@end
